﻿using nplJobsCommon.JobSeeker;
using nplJobsDAL.Delete;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace nplJobsBLL.ProcessJobSeeker
{
    public class ProcessDeleteJobSeekerJobAlert : IBusinessLogic
    {
        public bool IsDeleted { get; set; }
        public long JobAlertID { get; set; }
        public Guid JobSeekerId { get; set; }

        public ProcessDeleteJobSeekerJobAlert() { }
        public void invoke()
        {
            DeleteJobAlert deleteJobAlert = new DeleteJobAlert();
            deleteJobAlert.JobAlertID = this.JobAlertID;
            deleteJobAlert.JobSeekerId = this.JobSeekerId;
            deleteJobAlert.invoke();
            IsDeleted = deleteJobAlert.IsDeleted;
        }
    }
}
